package com.yuelife.entity;

import lombok.Data;

import java.util.Date;
import java.io.Serializable;
import java.util.List;

/**
 * (CDiscussion)实体类
 *
 * @author makejava
 * @since 2020-06-16 00:37:43
 */
@Data
public class CDiscussion implements Serializable {
    private static final long serialVersionUID = -42504461687191350L;
    /**
    * 主键
    */
    private Integer id;
    /**
    * 帖子标题
    */
    private String title;
    /**
    * 摘要，自动截取内容50个字
    */
    private String subTitle;
    /**
    * 内容
    */
    private String content;
    /**
    * 创建日期
    */
    private Date createDate;
    /**
    * 创建人
    */
    private String createdBy;
    /**
    * 点赞数
    */
    private Integer likes;
    /**
    * 转发数
    */
    private Integer forward;
    /**
    * 最后回复时间
    */
    private Date lastReply;
    /**
    * 社区
    */
    private String community;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getCreatedHead() {
        return createdHead;
    }

    public void setCreatedHead(String createdHead) {
        this.createdHead = createdHead;
    }

    /**
     * 作者头像
    * @Author: yangsen
    * create time: 2020/6/29 17:13
    */
    String createdHead;

    public List<CComment> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<CComment> commentList) {
        this.commentList = commentList;
    }

    /**
    * 讨论数
    */
    private Integer comments;
    /**
    * 图片
    */
    private String img;
    List<CComment> commentList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Integer getForward() {
        return forward;
    }

    public void setForward(Integer forward) {
        this.forward = forward;
    }

    public Date getLastReply() {
        return lastReply;
    }

    public void setLastReply(Date lastReply) {
        this.lastReply = lastReply;
    }

    public String getCommunity() {
        return community;
    }

    public void setCommunity(String community) {
        this.community = community;
    }

    public Integer getComments() {
        return comments;
    }

    public void setComments(Integer comments) {
        this.comments = comments;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

}